<?php
namespace app\index\controller;

use app\common\controller\HomeBase;
use app\common\model\AdCategory;
use app\common\model\Article;
use app\common\model\ArticleCategory;


class Resources extends HomeBase
{

    public function index()
    {
        $resourceSites=(New ArticleCategory())->where('status',1)->order('sort','desc')->column('id,ico,name');
        //广告
        $ad=AdCategory::getAdListByLocationId(3);

        $this->assign('ad', $ad);
        $this->assign('resourceSites', $resourceSites);
        return view();
    }
}
